#define _CRT_SECURE_NO_WARNINGS 1
#include<malloc.h>
#include<iostream>
using namespace std;


int globalVar = 1;
static int staticGlobalVar = 1;
void Test()
{
	static int staticVar = 1;
	int localVar = 1;
	int num1[10] = { 1, 2, 3, 4 };
	char char2[] = "abcd";
	const char* pChar3 = "abcd";
	int* ptr1 = (int*)malloc(sizeof(int) * 4);
	int* ptr2 = (int*)calloc(4, sizeof(int));
	int* ptr3 = (int*)realloc(ptr2, sizeof(int) * 4);
	free(ptr1);
	free(ptr3);
}

int main()
{
	/*int* p1 = new int(10);
	int* p2 = new int[10] {0};

	for (int i = 0; i < 10; i++)
	{
		cout << p2[i]<<" ";
	}

	cout << endl;
	cout << *p1 << endl;
	delete p1;
	delete[] p2;*/

	int a[10] = { 1,2,3,4,5,6,7,8,9,10 };
	char b[10] = "abcdefghi";

	return 0;
}